<%@ page language="java" contentType="text/html; charset=utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"  %>
<c:set var="path" value='${pageContext.request.contextPath }'></c:set>
<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>hhm管理-资源监控</title>
    <link href="${path}/css/style.css" rel="stylesheet" type="text/css">
    <link href="${path}/common/plugins/bootstrap/css/bootstrap.css" rel="stylesheet" type="text/css">
    <script src="${path}/js/jquery-1.7.2.min.js" type="text/javascript"></script>
    <script src="${path}/common/plugins/bootstrap/js/bootstrap.js" type="text/javascript"></script>
    <script src="${path}/common/plugins/handlebars.js" type="text/javascript"></script>
    <script src="${path}/common/plugins/spin.min.js" type="text/javascript"></script>
    <script src="${path}/js/common.js" type="text/javascript"></script>
    <script src="${path}/js/user_js.js" type="text/javascript"></script>
    <script src="${path}/common/plugins/layer/layer.js"></script>
    
    <style>
        html,body {margin:0;padding:0;}
        body{background:#f1f1f1;height:100%;}
    </style>
</head>
<script type="text/javascript">
var basePath="${path}";
var resourceId="${resourceId}";
var resourceType="${resourceType}";

</script>
<body>
<div class="content">
    <div class="content_detail">
        <div class="control-title">
             <i class="list content_current"></i><span>策略列表</span>
      
             <div class="spanbtn">
                 <button class="press_btn1" onclick="managerStrategy();"><i class="add top_current"></i>添加</button>
                 <button class="press_btn2" onclick="deleteCheckedStrategy();"><i class="del top_current"></i>删除</button>
                 <button class="press_btn3" onclick="appAllStrategy();"><i class="doc top_current"></i>执行全部未应用策略</button>
             </div>
        </div>
		<div class="content_condition">
             <h6>采集策略设置&nbsp;&nbsp;<span id="equipNameIp">${resourceIp}</span></h6>
             
             <div class="last_group">
                 <!--<h6>采集策略设置&nbsp;&nbsp;sun(192.168.0.1)</h6>-->
                
                <c:choose>
				   <c:when test="${resourceType =='os'}">  
				        <div id="perfNum"  class="span1">性能（0）</div>
				        <div id="capacNum" class="span1">容量（0）</div>
				        <div id="configNum" class="span1">配置（0）</div>
				        <div id="serviceNum" class="span1">服务（0）</div>
				        <div id="processNum" class="span1">进程（0）</div>
				        <div id="stateNum" class="span1">状态（0）</div>
				        <div id="tempNum" class="span1">温度（0）</div>   
				   </c:when>
				   <c:when test="${resourceType =='db'}">  
				        <div id="dbNum" class="span2">MySql（0）</div>
				    	<div id="dbOracleNum" class="span2">Oracle（0）</div>  
				   </c:when>
				   <c:when test="${resourceType =='network'}">  
				        <div id="networkConfNum" class="span2">配置（0）</div>
				    	<div id="networkPerfNum" class="span2">性能（0）</div>  
				   </c:when>
				</c:choose>
             </div>
         </div>
         <div class="content_table" id="strategy"> 
            
            </div>
        </div>
    </div>
</body>
<script src="${path}/radar/strategy/resourceStrategy.js"></script>
</html>



